package heap;

import java.util.Arrays;
public class Main {
    public static void main(String[] args) {
        int[] arr = {27,15,19,18,37,34,65,49,25,28};
        TestHeap heap = new TestHeap();
        heap.initElem(arr);
        heap.createMaxHeap();
        heap.offer(80);
        heap.pop();
        //t.createMinHeap();
        int[] res = heap.topK(arr,3);
        System.out.println(Arrays.toString(res));
        heap.realizeMaxHeap();
        System.out.println("sad");
    }
}
